interface IResponse {
    code: number;
    message: string;
    value: any;
}

function response(code = 0,message = "success",value = {}): IResponse {
    const res: IResponse = {
        code,
        message,
        value,
    };
    return res;
}

export { response , IResponse };